import java.util.Scanner;


public class Remspchar {
	

	public static void main(String[] args) {
		
		while(true)
		{
		System.out.println("Enter a string: ");
		Scanner sc=new Scanner(System.in);
		String s=sc.nextLine();
		boolean compare=false;
		String str=" ",str1=" ";
		for(int i=0;i<s.length();i++)
		{
			if(s.charAt(i)>=65&&s.charAt(i)<=90||s.charAt(i)>=97&&s.charAt(i)<=122||s.charAt(i)>=48&&s.charAt(i)<=57)
			{
				compare=true;
			}
			else
			{
				char c=s.charAt(i);
				str=s.replace(c, ' ');
				s=str;
				str1=str.trim();
				
			}
		}
		if(compare==true)
		{
			System.out.println(s +" does not contain any special character.");
		}
		else
		{
			System.out.println("New string is:" +str1);
		}
		}
	}

}
